﻿<%@ Page Title="Lembrar Senha" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="LembraSenha.aspx.cs" Inherits="CursoUNICEUB.LembraSenha" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            height: 20px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <h2>
        Favor preencha os Campos</h2>
    <br />
    <br />
    <table>
        <tr>
            <td class="style1">
                <asp:Label ID="Label8" runat="server" Text="Email :" ></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" Width="231px" MaxLength="30"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvEmail" runat="server" Display="Dynamic" ControlToValidate="txtEmail"
                    ErrorMessage="Email." ToolTip="Campo Obrigatório." 
                    ValidationGroup="Alterar">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revEmail" runat="server" 
                    ErrorMessage="Email." ControlToValidate="txtEmail" Display="Dynamic" 
                    ValidationGroup="Alterar" Text="*" ToolTip="Email incorreto." 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style1" valign="top">
                CPF :
            </td>
            <td>
                <asp:TextBox ID="txtCPF" runat="server" MaxLength="14"></asp:TextBox>
                <asp:MaskedEditExtender ID="txtCPF_MaskedEditExtender" runat="server" Mask="999.999.999-99"
                    MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
                    Enabled="True" TargetControlID="txtCPF" MaskType="None" 
                    ErrorTooltipEnabled="True">
                </asp:MaskedEditExtender>
                <asp:RequiredFieldValidator ID="rfvCPF" runat="server" Display="Dynamic" ControlToValidate="txtCPF"
                    ErrorMessage="CPF." ToolTip="Campo Obrigatório." ValidationGroup="Alterar">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revCPF" runat="server" 
                    ErrorMessage="CPF." ControlToValidate="txtCPF" Display="Dynamic" 
                    ValidationGroup="Alterar" Text="*" ToolTip="CPF incorreto." 
                    ValidationExpression="^\d{11}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="btnAlterarSenha" runat="server" Text="Alterar Senha" 
                    ValidationGroup="Alterar" onclick="btnAlterarSenha_Click" />
                <asp:ValidationSummary ID="vSum" runat="server" 
                    HeaderText="Favor verificar os seguintes campos :" ShowMessageBox="True" 
                    ShowSummary="False" ValidationGroup="Alterar" />
            </td>
        </tr>
    </table>
</asp:Content>

